//
//  scorolViewCell.m
//  ForengnMenu
//
//  Created by jiangtao on 16/1/22.
//  Copyright © 2016年 余旺. All rights reserved.
//

#import "scorolViewCell.h"

@implementation scorolViewCell

- (void)awakeFromNib {


    NSArray * arrImage = @[@"Icon_one1",@"Icon_two2",@"Icon_there",@""];
    
    self.myScrollView.contentSize = CGSizeMake(320*3, 122);
    self.myScrollView.pagingEnabled = YES;
    
    
    for (int i=0; i<arrImage.count; i++) {
        
        UIImageView * imageView =  [UIImageView new];
        
        imageView.frame = CGRectMake(320*i, 0, 320, 122);
        
        imageView.backgroundColor = [UIColor redColor];
        
        imageView.image = [UIImage imageNamed:arrImage[i]];
        
        
        [self.myScrollView addSubview:imageView];
        self.myScrollView.pagingEnabled =YES;
        
        
        
        
        
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
